{% extends "admin/base.html" %}

{% block extrahead %}
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .button i {
            margin-right: 5px;
        }
    </style>
{% endblock %}

{% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}

{% block branding %}
<h1 id="site-name">
    <a href="{% url 'admin:index' %}">{{ site_header|default:_('Django administration') }}</a>
</h1>
{% endblock %}

{% block nav-global %}
<div style="display: inline-block; margin-left: 20px;">
    <a href="/" class="button" style="background: #4b6cb7; color: white; padding: 8px 15px; border-radius: 4px; text-decoration: none;">
        <i class="fas fa-arrow-left"></i> 返回前端
    </a>
</div>
{% endblock %}